package experimental;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

import org.w3c.dom.Document;
import org.w3c.tidy.Tidy;

public class TidyParser {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws FileNotFoundException 
	 */
	public static void main(String[] args) throws FileNotFoundException, IOException {
		
		Tidy tidy = new Tidy();
		tidy.setQuiet(true);
		tidy.setShowWarnings(false);
		tidy.setForceOutput(true);
		
		Document document = tidy.parseDOM(new FileReader("/proj/dbNoBackup/pjbarrio/Experiments/Wrappers/AllQueryResults/1532/107.html"), 
				null);
	
		System.out.println(document);
		
	}

}
